//
// Created by wze-zero on 2024/7/22 022.
//
#include<iostream>
#include <set>

using namespace std;

int main() {
    set<int> s;
    int num;
    for (int i = 0; i < 5; ++i) {
        cin >> num;
        s.insert(num);
    }
    for (set<int>::iterator i = s.begin(); i != s.end(); ++i) {
        cout << *i << " ";
    }
    cout << endl;
    return 0;
}